package com.stary.code.springboot.config.mq;
/**
 * <p>ActiveMQ 配置类</p>
 * @author stary {@link stary1993@qq.com}
 * @since 2018-11-1
 */
public class ActivemqConfig {
	
	/**
	 * ActiveMQ broker的URL
	 */
	private String url = "tcp://localhost:61616";
	/**
	 * 指定broker的用户
	 */
	private String user;
	/**
	 * 指定broker的密码
	 */
	private String password;
	/**
	 * 是否是内存模式，默认为true
	 */
	private boolean inMemory = true;
	/**
	 * 是否创建PooledConnectionFactory，而非ConnectionFactory，默认false
	 */
	private boolean poolEnabled = false;
	
	public String getUrl() {
		return url;
	}
	public ActivemqConfig setUrl(String url) {
		this.url = url;
		return this;
	}
	public String getUser() {
		return user;
	}
	public ActivemqConfig setUser(String user) {
		this.user = user;
		return this;
	}
	public String getPassword() {
		return password;
	}
	public ActivemqConfig setPassword(String password) {
		this.password = password;
		return this;
	}
	public boolean isInMemory() {
		return inMemory;
	}
	public ActivemqConfig setInMemory(boolean inMemory) {
		this.inMemory = inMemory;
		return this;
	}
	public boolean isPoolEnabled() {
		return poolEnabled;
	}
	public ActivemqConfig setPoolEnabled(boolean poolEnabled) {
		this.poolEnabled = poolEnabled;
		return this;
	}
		
}
